
 
<div class="mfooter">
		<a href="/" class="item {if $botnav eq 'index'}active{/if}"><i class="iconfont icon-home"></i><br>
      首页</a>
    <a href="/index.php?m=koudai" class="item  {if $botnav eq 'koudai'}active{/if}"><i class="iconfont icon-bao"></i><br>
      校园超市</a>
    <a href="/index.php?m=cart" class="item  {if $botnav eq 'cart'}active{/if}"><i class="iconfont icon-cart"></i><br>
      购物车
    <span class="num" id="botnav_carnum" style="display:none">0</span>  
    </a>
   <a href="{if !$ssuser}/index.php?m=login{else}/index.php?m=user{/if}" class="item  {if $botnav eq 'user'}active{/if}"><i class="iconfont icon-user"></i><br>
      我的
  <span class="num" id="notice_num" style="display:none">0</span>
   </a> 
      
</div>

<script>

//通知
function notice(){
	$.get("/index.php?m=ajax&a=NewMsg",function(data){
		if(data.total>0){
			$("#notice_num").html(data.total).show();
		}else{
			$("#notice_num").hide();
		}
	},"json");
	setTimeout(function(){
		notice();
	},30000);
}


$(function(){
	botnav_cart_num(true);
	notice();
});
</script>
